﻿/*
    This file is part of TexEditorControl.

    TexEditorControl is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    TexEditorControl is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with TexEditorControl.  If not, see <http://www.gnu.org/licenses/>.   
*/

using System.Windows.Forms;

namespace TestEditor
{
    public partial class FormTest : Form
    {
        public FormTest()
        {
            InitializeComponent();
            texEditor1.Text = @"\documentclass[12pt]{article}
\usepackage{amsmath}
\title{\LaTeX}
\date{}
%#region Document
\begin{document}
  \maketitle
  %#region Introduction
  \LaTeX{} is a document preparation system for the \TeX{} 
  typesetting program. It offers programmable desktop publishing 
  features and extensive facilities for automating most aspects of 
  typesetting and desktop publishing, including numbering and 
  cross-referencing, tables and figures, page layout, bibliographies, 
  and much more. \LaTeX{} was originally written in 1984 by Leslie 
  Lamport and has become the dominant method for using \TeX; few 
  people write in plain \TeX{} anymore. The current version is 
  \LaTeX.
  %#endregion
  % This is a comment, it is not shown in the final output.
  % The following shows a little of the typesetting power of LaTeX
  \begin{align}
    E &= mc^2                              \\
    m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}}
  \end{align}
\end{document}
%#endregion
";
            texEditor1.AttachCodeCompletion(this);
        }
    }
}
